﻿<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
    <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>

    <xsl:template match="/root">

          <table class="datatable" border="0" cellpadding="0" cellspacing="0">
            <tr>
			<th></th>
				<th>Website Ref</th>
				<th>Name</th>
				<th>IP</th>
            </tr>
			  
            <xsl:for-each select="/root/item">
              <tr>
			  <td>
			  <a>
			  <xsl:attribute name="href">
							<xsl:text>/tabid/</xsl:text>
							<xsl:value-of select="/root/@tabid" disable-output-escaping="yes"/>
							<xsl:text>/ctl/WEBSITE/mid/</xsl:text>
							<xsl:value-of select="/root/@mid" disable-output-escaping="yes"/>
							<xsl:text>/itemid/</xsl:text>
							<xsl:value-of select="./genxml/hidden/itemid" disable-output-escaping="yes"/>
							<xsl:text>/Default.aspx</xsl:text>
							<xsl:text>?SkinSrc=</xsl:text>
							<xsl:value-of select="/root/@skinsrc" disable-output-escaping="yes"/>
						</xsl:attribute>		  
			  <img src="/DesktopModules/NBright/NBrightEspace/img/edit.png" />
			  </a>
			  </td>
                <td>
					<xsl:value-of select="./genxml/hidden/websiteref" disable-output-escaping="yes"/>
				</td>
                <td>
					<xsl:value-of select="./genxml/textbox/txtwebsitename" disable-output-escaping="yes"/>
				</td>
                <td>
					<xsl:value-of select="./genxml/textbox/txtliveip" disable-output-escaping="yes"/>
				</td>
              </tr>

            </xsl:for-each>

          </table>

		
    </xsl:template>

</xsl:stylesheet>
